<?xml version='1.0' encoding='UTF-8' ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<ui:composition template="/WEB-INF/templates/templateLogin.xhtml">
	<ui:define name="conteudo">
		<h:form>
			<p:panel id="panel"
				header="Informe os campos abaixo para salvar o registro ( * Obrigatórios ): "
				style="margin-bottom:10px;">

				<f:facet name="header">Entre em Contato</f:facet>

				<p:messages id="messages" />
				<h:panelGrid columns="2" cellpadding="10">
					<h:outputLabel for="email" value="Email: *" />
					<p:inputText id="email" value="#{usuarioController.usuario.email}"
						label="Email" size="40" />

					<h:outputLabel for="Mensagem" value="Mensagem: *" />
					<p:inputTextarea rows="5" cols="30" counter="counter"
						maxlength="500" counterTemplate="{0} characters remaining."
						autoResize="false" />
					<center>
						<h:outputText id="counter" />
					</center>
					<p:commandButton value="Enviar" id="btEnviar"
						action="#{contatoController.enviarMensagem}" update="panel" />
				</h:panelGrid>
			</p:panel>
		</h:form>
	</ui:define>
</ui:composition>

</html>